package interficie;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

/**
 * Created by Rafael Simon Garcia on 11/12/13.
 */

public class ModificarSubtareas extends JFrame implements WindowListener {

	private JPanel contentPane;
	private CtrlInterficie controladorInterficie;
	static ModificarSubtareas frame;
	
	public ModificarSubtareas(CtrlInterficie controli) {
		super("Modificar Subtareas");
		controladorInterficie = controli;
		
		setBounds(100, 100, 450, 300);
		setBackground(new Color(0, 153, 255));
		setBackground(new Color(153, 102, 102));
		contentPane = new JPanel();
		contentPane.setBackground(new Color(0, 153, 255));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		addWindowListener(this);
		
		setVisible(true);
	}

	@Override
	public void windowActivated(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowClosed(WindowEvent e) {
		controladorInterficie.activar();
	}

	@Override
	public void windowClosing(WindowEvent e) {
		controladorInterficie.activar();
		
	}

	@Override
	public void windowDeactivated(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowDeiconified(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowIconified(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void windowOpened(WindowEvent e) {
		// TODO Auto-generated method stub
		
	}

}
